package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 积分商城对象 k_shopping_mall
 *
 * @author kanglou
 * @date 2023-06-07
 */
@Data
@ApiModel("积分商城对象 k_shopping_mall")
public class KShoppingMall extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty("商品名称")
    private String commodityName;

    /** 商品首页图片 */
    @Excel(name = "商品首页图片")
    @ApiModelProperty("商品首页图片")
    private String picture;

    /** 商品分类,对应表k_commodity_type */
    @ApiModelProperty("商品分类,对应表k_commodity_type")
    private String type;

    /** 商品分类,对应表k_commodity_type */
    @Excel(name = "商品分类")
    @ApiModelProperty("商品分类,对应表k_commodity_type")
    private String typeStr;

    /** 商品详情 */
    @Excel(name = "商品详情")
    @ApiModelProperty("商品详情")
    private String content;

    /** 积分 */
    @Excel(name = "积分")
    @ApiModelProperty("积分")
    private Integer integral;

    /** 主键 */
    private String id;

    @ApiModelProperty("库存")
    private Long inventory;

    /** 是否热门 0否1是 */
    @ApiModelProperty("是否热门 0否1是")
    private Integer isHot;

    /** 价格 */
    @ApiModelProperty("价格")
    private BigDecimal price;

    public void setCommodityName(String commodityName)
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName()
    {
        return commodityName;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setIntegral(Integer integral)
    {
        this.integral = integral;
    }

    public Integer getIntegral()
    {
        return integral;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commodityName", getCommodityName())
            .append("picture", getPicture())
            .append("type", getType())
            .append("content", getContent())
            .append("integral", getIntegral())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("typeStr", getTypeStr())
            .append("isHot", getIsHot())
            .append("price", getPrice())
            .toString();
    }
}
